<?php
/**
 * Created by PhpStorm.
 * User: yf
 * Date: 2019-01-01
 * Time: 20:06
 */

return [
    'SERVER_NAME'=>"EasySwoole",
    'MAIN_SERVER'=>[
        'LISTEN_ADDRESS'=>'0.0.0.0',
        'PORT'=>9501,
        'SERVER_TYPE'=>EASYSWOOLE_WEB_SERVER, //可选为 EASYSWOOLE_SERVER  EASYSWOOLE_WEB_SERVER EASYSWOOLE_SOCKET_SERVER
        'SOCK_TYPE'=>SWOOLE_TCP,
        'RUN_MODEL'=>SWOOLE_PROCESS,
        'SETTING'=>[
            'worker_num'=>8,
            'max_request'=>5000,
            'task_worker_num'=>8,
            'task_max_request'=>1000
        ]
    ],
    /*################ MYSQL CONFIG ##################*/

    'MYSQL' => [
        'host'          => '127.0.0.1',
        'port'          => '3306',
        'user'          => 'easywoole',
        'timeout'       => '5',
        'charset'       => 'utf8mb4',
        'password'      => 'easywoole',
        'database'      => 'pjxF8KHDTL2aaWdJ',
        'POOL_MAX_NUM'  => '20',
        'POOL_TIME_OUT' => '0.1',
    ],

    /*################ REDIS CONFIG ##################*/


    'REDIS' => [
        'host'          => '106.52.140.176',
        'port'          => '6379',
        'auth'          => 'esgesrghergh3214',
        'POOL_MAX_NUM'  => '50',
        'POOL_MIN_NUM'  => '3',
        'POOL_TIME_OUT' => '0.1',
    ],
    'TEMP_DIR' => '/Temp',
    'LOG_DIR' =>'/Log'
];